package com.jcb.countfrench.model;

import java.util.ArrayList;
import java.util.List;

public class Quizz {
private int idQuizz ;
private int nbQuestion ;
private int noteUser ;
private int noteMax ;
private int nbReponseOK ;
private boolean actif ;

public boolean isActif() {
	return actif;
}

public void setActif(boolean actif) {
	this.actif = actif;
}
private String infoQuestion ;
private List<QuizzQuestionReponse> listQuizzQuestionReponse = new ArrayList<QuizzQuestionReponse>(); 

public void addQuizzQuestionReponse(QuizzQuestionReponse quizzQuestionReponse) {
	listQuizzQuestionReponse.add(quizzQuestionReponse);
}

public int getNumQuizzQuestionReponse() {
	return listQuizzQuestionReponse.size() ;
}

public QuizzQuestionReponse getCurrentQuizzQuestionReponse() {
	if (listQuizzQuestionReponse.size() > 0) {
		return listQuizzQuestionReponse.get(listQuizzQuestionReponse.size() - 1);
	}
	else {
		return null ;
	}
}

public String getInfoQuestion() {
	return infoQuestion;
}
public void setInfoQuestion(String infoQuestion) {
	this.infoQuestion = infoQuestion;
}
public List<QuizzQuestionReponse> getListQuizzQuestionReponse() {
	return listQuizzQuestionReponse;
}
public void setListQuizzQuestionReponse(
		List<QuizzQuestionReponse> listQuizzQuestionReponse) {
	this.listQuizzQuestionReponse = listQuizzQuestionReponse;
}



public int getNbReponseOK() {
	return nbReponseOK;
}
public void setNbReponseOK(int nbReponseOK) {
	this.nbReponseOK = nbReponseOK;
}
public int getNbReponseErr() {
	return nbReponseErr;
}
public void setNbReponseErr(int nbReponseErr) {
	this.nbReponseErr = nbReponseErr;
}
int nbReponseErr ;



String libQuizz ;
public int getIdQuizz() {
	return idQuizz;
}
public void setIdQuizz(int idQuizz) {
	this.idQuizz = idQuizz;
}
public int getNbQuestion() {
	return nbQuestion;
}
public void setNbQuestion(int nbQuestion) {
	this.nbQuestion = nbQuestion;
}
public int getNoteUser() {
	return noteUser;
}
public void setNoteUser(int noteUser) {
	this.noteUser = noteUser;
}
public int getNoteMax() {
	return noteMax;
}
public void setNoteMax(int noteMax) {
	this.noteMax = noteMax;
}
public String getLibQuizz() {
	return libQuizz;
}
public void setLibQuizz(String libQuizz) {
	this.libQuizz = libQuizz;
}
public Quizz(int idQuizz) {
	super();
	this.idQuizz = idQuizz;
}

	
}
